package com.zwl.smartplatform.mapper;

import com.zwl.smartplatform.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {

    @Select("select * from sys_role where role_id=#{id}")
    Role selectRoleById(Long id);

    @Select("select * from sys_role ")
    List<Role> selectAllRoles();
}
